<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>员工表</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			#if($shiro.hasPermission("hisemployee:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("hisemployee:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
	        <input id="inorgtime"  class="form-control" type="text" placeholder="时间" style="width:275px;display:inline"/>
	        <a class="btn btn-primary" @click="query"><i class="fa fa-pencil-square-o"></i>&nbsp;查询</a>
			#if($shiro.hasPermission("hisemployee:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
	    <table id="jqGrid" style="margin-bottom:40px"></table>
	    <div id="jqGridPager" style="width: window.screen.availWidth- 260; height: 40px; margin-bottom: 18px; background: #fff; float: left;"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.name" placeholder="姓名"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">出生日期</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.birthday" placeholder="出生日期"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">性别（0;女，1：男）</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.gender" placeholder="性别（0;女，1：男）"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.cardno" placeholder="身份证号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">员工编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.workno" placeholder="员工编号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">上级工号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.upworkno" placeholder="上级工号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">职位编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.jobno" placeholder="职位编号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">部门编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.deptno" placeholder="部门编号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">sys_user的id字段</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.userid" placeholder="sys_user的id字段"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">入职时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.inorgtime" placeholder="入职时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">转正时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.zztime" placeholder="转正时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">离职时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.outorgtime" placeholder="离职时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">是否公司手机（0：否，1：是）</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.hasorgmobile" placeholder="是否公司手机（0：否，1：是）"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">手机号码</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.mobileno" placeholder="手机号码"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">推荐人</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.recommender" placeholder="推荐人"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">排序</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.orderno" placeholder="排序"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">b备注</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.memo" placeholder="b备注"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">b备注字段</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.excol" placeholder="b备注字段"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.createtime" placeholder="创建时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建人</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.createby" placeholder="创建人"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">修改时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.updatetime" placeholder="修改时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">修改人</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.updateby" placeholder="修改人"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">状态</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.state" placeholder="状态"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.hisyear" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.hismonth" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="hisEmployee.hisid" placeholder=""/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/zjdc/hisemployee.js?_${date.systemTime}"></script>
<script src="${rc.contextPath}/js/laydate/laydate.js"></script>
<script>
laydate.render({
  elem: '#inorgtime', //指定元素
  type:'month',
  range: true,
  max:'currentmonth'
}); 
</script>
</body>
</html>